import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login'
import Email from '../views/Email'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Index',
    redirect: {name: "Login"}
  },
  {
    path: "/login",
    name: 'Login',
    component: Login
  },
  {
    path: '/email',
    name: 'Email',
    component: Email
  }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
